#include <netinet/ip.h>
#include <netinet/tcp.h>
#include <netinet/udp.h>
#include <netinet/in.h>
#include <string.h>

#define ETHER_MAC_LEN 6

typedef struct{
	u_char  ether_dhost[ETHER_MAC_LEN];
	u_char  ether_shost[ETHER_MAC_LEN];
	u_short ether_type;
}Ethernet_header_t;

typedef struct iphdr ip_header_t;
#define IP_HEADER_LEN (sizeof(ip_header_t))
#define ETHERNET_HEADER_LEN (sizeof(Ethernet_header_t))
